{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "9318b36e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[6 5 6 9 0 7]\n"
     ]
    }
   ],
   "source": [
    "import numpy as np\n",
    "x1=np.random.randint(10, size=6)\n",
    "print(x1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "7c161b1e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[1 9 5 3]\n",
      " [2 2 3 3]\n",
      " [4 4 5 9]]\n"
     ]
    }
   ],
   "source": [
    "x2 = np.random.randint(10,size=(3,4))\n",
    "print(x2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "e98186eb",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[[[ 1.34322442e-01 -3.69612498e-01  5.93081190e-02  2.69264540e-02\n",
      "    1.64168914e-01]\n",
      "  [ 1.97028519e-01 -3.64445051e-01  2.13291892e+00 -2.82956531e-01\n",
      "   -8.03449002e-01]\n",
      "  [ 2.75099645e+00 -1.15673951e+00  4.26355678e-01  1.91875827e+00\n",
      "    1.06336419e+00]\n",
      "  [ 3.75772450e-01  8.92665249e-01 -9.26622901e-01  2.62393163e+00\n",
      "   -3.60242707e-01]]\n",
      "\n",
      " [[-1.46915192e+00 -1.30123025e+00  1.69087533e+00  1.13522816e+00\n",
      "    3.62501807e-01]\n",
      "  [-1.73978634e-01  1.07443204e+00 -5.47930499e-01  7.40494998e-01\n",
      "    5.05024866e-01]\n",
      "  [-8.88713905e-01  2.40761213e-03 -1.08538318e+00 -1.28182966e+00\n",
      "    2.77951677e-01]\n",
      "  [ 2.13511057e+00  4.18551324e-01  9.61750532e-01  1.83501748e+00\n",
      "    1.34630607e+00]]\n",
      "\n",
      " [[-1.69866808e+00  3.27824151e-01 -9.38301921e-01 -7.17960726e-01\n",
      "    1.32547244e+00]\n",
      "  [ 5.72491351e-02 -1.06281084e+00 -4.04608843e-01  1.04480224e+00\n",
      "    6.37813842e-01]\n",
      "  [ 6.53435769e-01  6.88251487e-01 -9.29121545e-01 -1.82620592e+00\n",
      "    2.53701232e-01]\n",
      "  [-1.06658389e+00  1.94983860e+00 -1.22976328e+00  4.12997915e-01\n",
      "    4.66057655e-01]]]\n"
     ]
    }
   ],
   "source": [
    "x3 = np.random.randn(3,4,5)\n",
    "print(x3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "fa11667b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "ndim: 1 2 3\n"
     ]
    }
   ],
   "source": [
    "print(\"ndim:\",x1.ndim,x2.ndim,x3.ndim)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "e930b022",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "shape: (6,) (3, 4) (3, 4, 5)\n"
     ]
    }
   ],
   "source": [
    "print(\"shape:\",x1.shape,x2.shape,x3.shape)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "d96e2d01",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "dtype: int32 int32 float64\n"
     ]
    }
   ],
   "source": [
    "print(\"dtype:\",x1.dtype,x2.dtype,x3.dtype)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "eb7e4e28",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "size: 6 12 60\n"
     ]
    }
   ],
   "source": [
    "print(\"size:\",x1.size,x2.size,x3.size)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "36611c60",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "itemsize: 4 4 8\n"
     ]
    }
   ],
   "source": [
    "print(\"itemsize:\",x1.itemsize,x2.itemsize,x3.itemsize)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "839af77c",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "my_test",
   "language": "python",
   "name": "my_test"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
